<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="utf-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="renderer" content="webkit" />
    <meta name="format-detection" content="telephone=no" />
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1"/>
    <title>我的<?php echo $output['site_name']?></title>
    <link rel="stylesheet" href="<?php echo TEMPLATE_SITE_URL;?>/zsm-static/_build/p/women/women.css">
    <link href="<?php echo TEMPLATE_SITE_URL;?>/css/user.css" type="text/css" rel="stylesheet">
    <script src="<?php echo TEMPLATE_SITE_URL;?>/zsm-static/_build/c/index.js"></script>
    <script src="<?php echo TEMPLATE_SITE_URL;?>/zsm-static/_build/c/jquery.min.js"></script>
</head>
<body>
<div class="app">
    <section class="info">
        <div class="gengduo showtip">个人</br>中心</div>
        <div class="myMenuMain">
            <div class="menuMask"></div>
            <div class="menuBox">
                <div class="menuItem userinfo">
                    <div class="avatar" style="background-image: url(<?php if(!empty($output['user']['avatar'])){ echo $output['user']['avatar'];}else{ echo 'member.png';}?>)"></div>
                    <div class="name"><?php echo $output['user']['nickname']?>
                        <div class="syncUserinfo"></div>
                    </div>
                    <div class="signature"></div>
                </div>
                <a href="index.php?act=my&op=message">
                    <div class="menuItem msg">
                        <div class="title">我的消息</div>
                        <div class="desc"><span>不错过</span>每个消息</div>
                    </div>
                </a>
                <a href="index.php?act=my&op=myinfo&user_id=<?php echo $output['user']['user_id'];?>">
                    <div class="menuItem balance">
                        <div class="title">我的余额</div>
                        <div class="desc">余额<span> <?php echo $output['user']['price'];?>元</span></div>
                    </div>
                </a>
                <a href="index.php?act=my&op=userorder&userid=<?php echo $output['user']['user_id'];?>">
                    <div class="menuItem order">
                        <div class="title">我的订单</div>
                        <div class="desc">买买买，<span>卖卖卖</span></div>
                    </div>
                </a>
                <a href="index.php?act=index&op=qunfa">
                    <div class="menuItem saleMsg">
                        <div class="title">群发消息</div>
                        <div class="desc"><span>群发</span>拍品消息</div>
                    </div>
                </a>
                <a href="index.php?act=index&op=yao&cate_id=1&t=<?php echo time();?>">
                    <div class="menuItem shake">
                        <div class="title">摇一摇</div>
                        <div class="desc"><span>搜罗</span>兴趣拍品</div>
                    </div>
                </a>
                <a href="index.php?act=renzheng&op=renzheng">
                    <div class="menuItem manage">
                        <div class="title">资质认证</div>
                    </div>
                </a>	  <a href="index.php?act=renzheng&op=zhuanchang&curpage=1">      <div class="menuItem manage">        <div class="title">我的专场</div>      </div>      </a>

                <div class="menuBottom">
                    <div class="menuItem help" onclick="location.href='<?php echo $output['help_link']['value'];?>';">
                        <div class="title">帮助中心</div>
                    </div>
                    <div class="menuItem about" onclick="location.href='<?php echo $output['about_link']['value'];?>';">
                        <div class="title">关于<?php echo $output['site_name'];?></div>
                    </div>
                </div>
            </div>

        </div>
        <div class="touxiang">
            <img src="<?php if(!empty($output['user']['avatar'])){ echo $output['user']['avatar'];}else{ echo 'member.png';}?>"/>
        </div>
        <div class="dangan">
            <div class="box"><span>关注</span><b><?php echo $output['mcount'];?></b><img src="<?php echo TEMPLATE_SITE_URL;?>/zsm-static/pic/xin.svg"/></div>
            <div class="box left-border"><span>粉丝</span><b><?php echo $output['fcount'];?></b><img src="<?php echo TEMPLATE_SITE_URL;?>/zsm-static/pic/fensi.svg"/></div>
            <div class="box left-border"><span>买入</span><b><?php echo $output['usernum'];?></b><img src="<?php echo TEMPLATE_SITE_URL;?>/zsm-static/pic/mairu.svg"/></div>
            <div class="box left-border"><span>卖出</span><b><?php echo $output['sellernum'];?></b><img src="<?php echo TEMPLATE_SITE_URL;?>/zsm-static/pic/maichu.svg"/></div>
        </div>
    </section>
    <menu class="zhuanchang">
        <ul>
            <li class="caidan"><a href="index.php?act=my">我发布的</a></li>
            <li class="yaoyao"><img onclick="javascript:location.href='index.php?act=index&op=yao';" src="<?php echo TEMPLATE_SITE_URL;?>/zsm-static/pic/yaoyao.svg" /></li>
            <li class="caidan"><a class="current" href="index.php?act=my&type=1" >我喜欢的</a></li>
        </ul>
    </menu>
    <section class="floor liekdata">

    </section>
</div>
<input type="hidden" name="haspage" value="1" id="haspage">
<input type="hidden" name="pagenum" value="0" id="pagenum">
<script>
    $(function(){

        $(window).scroll(function () {
            var $body = $("body");
            if (($(window).height() + $(window).scrollTop()) >= $body.height()) {
                var haspage = parseInt($('#haspage').val());
                if(haspage=='0'){
                    return false;
                }
                var pagenum = parseInt($('#pagenum').val());
                var nextpage = eval(pagenum+1);

                ajaxdata(nextpage);
            }
        });

        function ajaxdata(nextpage){
            $.ajax({
                type:'get',
                url:'index.php?act=my&op=likedata',
                data:{nextpage:nextpage},
                dataType:'html',
                success:function(html){
                    $('.loadNextPage').hide();
                    if(html==''){
                        $('#haspage').val('0');
                    }else{
                        $('#pagenum').val(nextpage);
                        $('.liekdata').append(html);
                    }
                },
                beforeSend:function(){
                    $('.loadNextPage').show();
                }
            });
        }

        ajaxdata(1);

        $('.showtip').click(function(){
            $('.myMenuMain').show();
        });

        $('.menuBox').click(function(){
            $('.myMenuMain').hide();
        });
    });
</script>
<!--引入导航菜单与底部-->
<?php $zh_nav="我的";?>
<?php include template('home/zsm/nav');?>